package tankgame;

import javafx.fxml.FXML;
import javafx.scene.control.Button;
import javafx.scene.control.ComboBox;
import javafx.scene.control.TextArea;
import javafx.util.StringConverter;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

/**
 * @author: lizhiwen
 * @version: 1.0
 */
public class Controller {
        static String choice = " ";
        @FXML
        private Button starNewPlay;
        @FXML
        private Button keepLast;
        @FXML
        private Button leaderboard;


        //开始新游戏
        public void OnStarNewPlay() {
                choice = "1" ;
        }

        //继续上局游戏
        public void OnKeepLast(){
                choice = "2";
        }

        //排行榜
        public void onLeaderboard(){
                choice = "3";
        }

}
